package com.sanwu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author hgh
 * @date 2025/3/11
 * @apiNote
 */

@Data
@TableName(value = "sys_user")
public class SysUser {

    @TableId(type = IdType.INPUT)
    private String id;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("密码")
    private String passWord;

    @ApiModelProperty("用户电话号码")
    private String phone;

    @ApiModelProperty("用户账号")
    private String accountNumber;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("是否删除（0：未删除；1：删除）")
    private Integer isDelete;

    @ApiModelProperty("是否是管理员(0：普通用户；1：管理员)")
    private Integer isManager;

}
